<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <meta http-equiv="X-UA-Compatible" content="ie=edge" />
    <title>Document</title>
    <script src="./js/vue2.js"></script>
    <style>
      p {
        display: block;
      }
      [v-cloak] {
        display: none;
      }
    </style>
  </head>
  <body>
    <div id="app">
      <p v-cloak>{{ msg }}</p>
    </div>
    <script>
        //三秒后执行这一代码,期间p标签的内容就是{{msg}}知道三秒后才改变
      setTimeout(() => {
        var vm = new Vue({
          el: "#app",
          data: {
            msg: "helllo"
          }
        });
      }, 3000);
    </script>
  </body>
</html>
